# coding:utf-8
from src.log.logger import Logger
from src.config.logconfig import Config


class Log:
    """
    说明：
        通过logger = Log() 来获得定制过的logger
        1. 可通过控制台打印
        2. 也可在log目录中生成log.log日志文件
    """

    def __new__(cls, *args, **kwargs):
        return Logger()(
            projectdir=Config.projectDir,
            loggingformat=Config.loggingFormat,
            logginglevel=Config.loggingLevel,
        )
